package com.tea.config.wx;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 微信发货配置类
 */
@Configuration
@ConfigurationProperties(prefix = "wx.shipping")
@Data
public class WxShippingConfig {
    
    /**
     * 微信小程序AppId
     */
    private String appId;
    
    /**
     * 微信小程序AppSecret
     */
    private String appSecret;
    
    /**
     * 微信发货信息上传API地址
     */
    private String apiUrl = "https://api.weixin.qq.com/wxa/sec/order/upload_shipping_info";
    
    /**
     * 微信获取AccessToken API地址
     */
    private String tokenUrl = "https://api.weixin.qq.com/cgi-bin/token";
    
    /**
     * 发货人联系方式
     */
    private String consignorContact = "400-123-4567";
}